#!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'arrow'
__explain__ = ''

"""

字幕要拼接（concatenate_videoclips）, 字幕、图片、视频等要合成（CompositeVideoClip）

{   
    "clip": "VideoFileClip", 
    "props": {
        "file_id": 2
    },
     "final_settings": [{
        "type": "on_color",
        "kwargs": {"size": [x,y], "color": (255,255,255)}
    },{
        "type": "set_position",
        "kwargs": {"size": [x,y]}
    },{
        "type": "set_image_file",
        "kwargs": {"file_id": 1,
                "size": None,
                "duration": 600
                }
    },{
        "type": "cutout",
        "value": {"ta":5,"tb":10}
    },{
        "type": "subclip",
        "value": {"t_start":5,"t_end":10}
    }],
    "final_fx": []
}
{   
    "clip": "ImageClip", 
    "props": {
        "filename": ""
    },
     "final_settings": [{
        "type": "set_position",
        "kwargs": {"size": [x,y]}
    }],
    "final_fx": []
}



# 需要混合的
{
    "compose_clips": [obj见上面],
    
    
    "final_settings": [{
                    "type": "set_audio_file",
                    "kwargs": {"file_id": 5}
                },{
                    "type": "set_subtitle_file",
                    "kwargs": {"file_id": 6}
                }]
}
"""